home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 January
/
PCWorld_2007-01_cd.bin
/
v cisle
/
autoit
/
autoit-v3.2.0.1-setup.exe
/
Examples
/
Helpfile
/
StringFormat.au3
< prev
next >
Wrap
Text File
|
2006-06-17
|
332b
|
10 lines
$String = "string"
$Float = 12.3
$Int = 345
$S =StringFormat ( "$String = %s" & @CRLF & "$Float = %.2f" & @CRLF & "$Int = %d" ,$String, $Float, $Int )
MsgBox(0, "Result", $S)
; Will output "$String=string $Float=12.30 $Int=345"
; Notice the 12.30 done with the %.2f which force's 2 digits after the decimal point